import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.Authenticator;
import java.net.PasswordAuthentication;
import java.net.URL;
import java.net.URLConnection;

import rovio.Rovio;

import xml.User;

/** 
 * Project: RovioIsWatchingYou
 * File: Test.java
 *
 * Description: 'insert description here'
 *
 * last change: 08.06.2012
 */

/**
 * @author ebaerj
 *
 */
public class Test {

	
	/*public static void main(String[] args) throws IOException {

		final String login = "rovio";
		final String password = "123456";

		// Create an authenticator to provide username and password to Rovio
		Authenticator.setDefault(new Authenticator() {
			protected PasswordAuthentication getPasswordAuthentication() {
				return new PasswordAuthentication(login, password.toCharArray());
			}
		});

		// Create the command being sent to Rovio
		// URL url = new
		// URL("http://192.168.1.5/rev.cgi?Cmd=nav&action=18&drive=13");

		Rovio exampl = new Rovio();
			exampl.go("http://192.168.1.5/rev.cgi?Cmd=nav&action=18&drive=1&speed=1",11,200);
			exampl.go("http://192.168.1.5/rev.cgi?Cmd=nav&action=18&drive=0",1,1000);
		// exampl.go("http://192.168.1.5/rev.cgi?Cmd=nav&action=18&drive=5&speed=8",2);
		// exampl.go("http://192.168.1.5/rev.cgi?Cmd=nav&action=18&drive=17&speed=5",49);
		// exampl.go("http://192.168.1.5/rev.cgi?Cmd=nav&action=18&drive=2&speed=10",50);
		// exampl.go("http://192.168.1.5/rev.cgi?Cmd=nav&action=13",1);

	}*/
	
}
